package cmd

import (
	"gitee.com/crack007/goose"
	"gitee.com/crack007/goose/core/web"
	"gitee.com/crack007/udp-penetrate/src/api/handle"
)

func NewServerCmd() *goose.ModuleBuilder {
	httpServerBuilder := web.NewHttpServerBuilder(handle.NewServerApiHandle())
	httpServerBuilder.EnableDebugFlag().EnableConfigFlag()
	httpServerBuilder.EnablePortFlag(80)
	return goose.NewModuleBuilder(httpServerBuilder).SetName("server").SetDesc("中心服务端")
}
